package com.ruoyi.accounting.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;


/**
 * 账本对象 acc_account_book
 *
 * @author ruoyi
 * @date 2025-01-14
 */
@Data
public class AccAccountBook extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String id;

    /**
     * 账本名称
     */
    @Excel(name = "账本名称")
    private String accountBookName;

    /**
     * 总收入
     */
    @Excel(name = "总收入")
    private BigDecimal generalIncome;

    /**
     * 总支出
     */
    @Excel(name = "总支出")
    private BigDecimal aggregateExpenditure;

    /**
     * 是否删除
     */
    private Integer delFlag;
    /**
     * 状态
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String accountBookStatus;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("accountBookName", getAccountBookName())
                .append("generalIncome", getGeneralIncome())
                .append("aggregateExpenditure", getAggregateExpenditure())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("accountBookStatus", getAccountBookStatus())
                .toString();
    }
}
